package com.xm.pojo;

import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Orders {
    private Integer oid;
    private Integer gid;
    private Integer uid;
    private String amount;
    private String otype;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//设置日期类型的格式模板
    private Date ptime;

    @Override
    public String toString() {
        return "Orders{" +
                "oid=" + oid +
                ", gid=" + gid +
                ", uid=" + uid +
                ", amount='" + amount + '\'' +
                ", otype='" + otype + '\'' +
                ", ptime=" + ptime +
                '}';
    }
}